import axios from 'axios'
export function request(config) {
  //创建axios实例
  const instance = axios.create({
    baseURL: '#',
    timeout: 5000
  })
  //请求拦截
  instance.interceptors.request.use(config => {
    //拦截后要返回
    return config
  }, err => {

  })
  //响应拦截
  instance.interceptors.response.use((res) => {

    return res
  }, err => {

  })
  //发送网络请求
  return instance(config)
  
}